Hi Christian.
I think I've found a bug on PictureToJPEGStringMBS on web applications.
It seems the issue is based on the folderitem name!
In UploadComplete event into a FileUploader I have exactly the following code,
where myImages is a string array in the window that contains the FileUploader.
Dim uploadedPicture As Picture
For Each file As WebUploadedFile In Files
Try
uploadedPicture = Picture.FromData(file.Data)
myImages.Append(PictureToJPEGStringMBS(Picture(uploadedPicture),100))
Catch err As UnsupportedFormatException
// not a picture, so skip it
Continue
Catch err As IOException
MsgBox("You do not have permissions to save files on the server.")
Exit For
End Try
Next
If I upload an image named 164456_10151621482725983_166441545_n.jpg (for
example) that code works fine until the row "myImages.append....". I can see
correctly the image into the picture object in the debugger... but when the row
with PictureToJPEGStringMBS function is executed the webapp simply closes
itself! Without exception... it stops!
The funny thing is that I rename my image (on my local hd) from
164456_10151621482725983_166441545_n.jpg to 1.jpg all works nice, without
errors and without closing the app...
Can you verify if PictureToJPEGStringMBS function may have something wrong in
web applications?
Many thanks!
------
Sergio Tamborini
Brescia
http://www.system-i.it
"C'è un equivoco di fondo. Si dice che il politico che ha avuto frequentazioni
mafiose, se non viene giudicato colpevole dalla magistratura, è un uomo onesto.
No! La magistratura può fare solo accertamenti di carattere giudiziale. Le
istituzioni hanno il dovere di estromettere gli uomini politici vicini alla
mafia, per essere oneste e apparire tali"
"There is a basic misunderstanding. It is said that political mafia has had
acquaintances, if not found guilty by the courts, is an honest man. No. The
judiciary can only do the findings of a judicial nature. Institutions have a
duty to oust politicians close to the mafia, to be honest, these look "
Paolo Borsellino
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info