binaryDecode limit 25000 ?

Mark Smith lists at futilism.com
Mon Oct 13 12:32:26 EDT 2008


Franz, binarydecode seems to be a little picky about the number of  
bytes you tell it about, so in this case, you might do better with

get binarydecode("H*", bilddaten, transfer)

Best,

Mark

On 13 Oct 2008, at 15:54, runrev at animabit.de wrote:

> Hello
>
> I just run into a problem using binaryDecode on 2.9:
>
> A function for converting jpg into rtf as follows only worked with  
> very small images:
>
> export image 1 of group "inhalt" to bilddaten as JPEG
> get binaryDecode("H*",bilddaten,transfer)
> put "{\rtf{\pict\jpegblip\picwgoal874\pichgoal1121 " & cr into header
> put cr & "}" & cr & "}" into footer
> put header & transfer & footer into rtf
> return rtf
>
> Checking the details I found that
> get binaryDecode("H25000",bilddaten,transfer)
> did work, but not
> get binaryDecode("H50000",bilddaten,transfer)
>
> Is there a limit for binaryDecode near 25000? Can I do multiple  
> binaryDecodes of chunks of the jpg-data in bilddaten?
>
> Regards, Franz
> Mit freundlichen Grüßen
> Franz Böhmisch
>
> boehmisch at animabit.de
> http://www.animabit.de
> GF Animabit Multimedia Software GmbH
> Am Sonnenhang 22
> D-94136 Thyrnau
> Tel +49 (0)8501-8538
> Fax +49 (0)8501-8537
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list