Hi there.

I have a very simple application that read a jpg file, resize it and resave 
with another name into another folder.

It seems working nice on mac, windows 7 32bit, but in windows7 64bit it returns 
a zero bite file... It happens on 2 pcs with Win 7 64bit, and works on 2 pcs 
with win 7 32bit.

Here the code I use in a loop

        TheString=""
        
        f=obj.FolderItem
        
        p=f.OpenAsJPEGMBS
        
        'this function scale the picture at 1600px width
        prid=GetThumbnailGalleryWidth(p,1600)
        
        'now I save the resized picture
        TheString=PictureToStringMBS(prid,"jpeg",&h300,0)
        
        b=BinaryStream.Create(fdest.Child(outputfilename))
        
        b.Write(TheString)
        b.Close

Any help about this?

------

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

Reply via email to