if I change URL, then images which I choose first time gets stuck and
cannot be replaced.

remove/removeStore does not help.

2009/9/12 Michael Nordman <[email protected]>:
> Do you have more than one store with /blob in it? At some point did you
> change store names?
>
> On Fri, Sep 11, 2009 at 9:36 AM, algo <[email protected]> wrote:
>>
>> Hi,
>>
>> I'm running the code to read user-selected picture file into blob and
>> show it.
>>
>> But as I select different files, the image from store is same, Ctrl-F5
>> doesn't help.
>> I even tried to remove store before the operation, doesn't help.
>>
>> So I run the code, select different files between runs, but see same
>> image in /blob
>>
>> That drives me crazy!  What's going on?
>>
>> var showResized = function(files) {
>>  var localServer = google.gears.factory.create('beta.localserver')
>>  var store = localServer.createStore('store')
>>  blob = files[0].blob
>>  // alert(blob.length) --> DIFFERENT!
>>  store.captureBlob(blob, '/blob', "image/jpeg")
>>  $('#resized').html('<img src="/blob"/>')  // --> SAME
>>
>> }
>>
>> var desktop = google.gears.factory.create('beta.desktop');
>> desktop.openFiles(showResized,
>>    { singleFile : true, filter: ['image/jpeg', 'image/gif', 'image/
>> png'] }
>>  )
>>
>> P.S
>> I'm using latest version of Gears.
>> Tested on IE8 Win and FF3.5 Win
>
>

Reply via email to