WebPicture.ForceDownload not working in Chrome

When using WebPicture.ForceDownload = TRUE in Chrome, it still will be displayed within the browser. Safari downloads the image as expected. How can I work around this issue?

Best,
Alex

It sounds like Google, in their infinite wisdom, has decided to ignore the supplied MIME type, since that’s how ForceDownload works. Off the top of my head, the only solution I can think of is to zip the image.

File a bug report though, and we’ll take a look.

Uhhhm, crazy. When creating a simple demo project (that I wanted to attach to the case) it works!?

[code] DIM p AS NEW Picture(100, 100)
DIM g AS Graphics

g = p.Graphics

g.FillRect 0, 0, 100, 100

MyWebPicture = p //A property
MyWebPicture.ForceDownload = TRUE

ShowURL(MyWebPicture.URL)[/code]

Gonna investigate further, then.

If one creates a new WebPicture by assigning a Picture - it seems to work. However I was getting my WebPicture from a WebImageView.Picture, there ForceDownload doesn’t seem to work. Creating a new Picture first and then converting it back to a WebPicture solved the issue. Bug or by design?

It wouldn’t surprise me if doing it this way overrides the behavior because of the way WebImageView works.

I guessed that. Thanks anyway!