Hi Mike- thanks for the response.
I have publicly available images that I'm using. Here's an example:
http://baffle.commondatastorage.googleapis.com/97e66633a0ad876b00ddf35e76dae84e48f812ad.jpg
Note, this is binary data, so you have to wrap it in an img tag to see
it:
<img src = "
http://baffle.commondatastorage.googleapis.com/
97e66633a0ad876b00ddf35e76dae84e48f812ad.jpg"/>
Now, what I'm trying to do is hide that image file name from the end
user. So what i've been doing is, on the server, I grab that file
myself (the client has an img tag whose source is my server):
file = google_client.get_object('baffle', image.image_file)
(i'm using rails with the gstore gem, and google_client is the
initialized instance)
Then, I send it down to the client:
send_data file,
:type => "image/jpeg",
:disposition => 'inline',
:name => Digest::SHA1.hexdigest("#{Time.now.to_s}
#{rand(1000000).to_s}.jpg")
This sends the file with a new name. And, every time the image is
requested, it gets a new name and this way the user cannot identify
the file name and access it on his own, directly from GS (which is my
goal).
This was working just fine, for the past 5 weeks or so. No problems
whatsoever. Suddenly, last night, this stopped working. It appears
that only long file names are broken, because I have some shorter file
names that work just fine. And, if I take a file, shorten it's name,
upload it to GS, and do the exact same call on my server, it works
fine.
Let me know if you need anything clarified, and thanks again for the
response.
Dino
On Aug 31, 12:16 pm, "Mike Schwartz (Google Storage Team)" <gs-
t...@google.com> wrote:
> Hi Dino,
>
> I'm not sure I understand what operations you're performing. Can you
> please provide an example of the sequence of RESTful requests you're
> making to GS, including the path names? If you have privacy/propriety
> concerns it's fine to use made-up names.
>
> Thanks
> - Mike
>