1. #11
    Sencha Premium Member
    Join Date
    Oct 2009
    Location
    Germany
    Posts
    330
    Vote Rating
    1
    PranKe01 is on a distinguished road

      0  

    Default

    Hm - the code doesn't seem to work like I thought. I am creating a ByteArray of a word-file and giving it to the encode function. When I decode it and writing the bytearray back to the hdd, the size is bigger and the file cannot be opened

    What am I doing wrong?! Isn't it possible to encode a ByteArray to base64? How would you encode an exe-file to base64?

  2. #12
    Sencha Premium Member
    Join Date
    Oct 2009
    Location
    Germany
    Posts
    330
    Vote Rating
    1
    PranKe01 is on a distinguished road

      0  

    Default

    Hi guys,

    I rewrote the function, so that I could encode and decode ByteArrays. The code can be found here: http://www.extjs.com/forum/showthrea...635#post430635

  3. #13
    Sencha User
    Join Date
    Mar 2012
    Posts
    211
    Vote Rating
    0
    hieu79vn is an unknown quantity at this point

      0  

    Default

    Hi Animal
    Could you tell me Where to find the base 64 encode funtion in Extjs?

    Thank you

  4. #14
    Sencha User Misiu's Avatar
    Join Date
    Jun 2012
    Location
    Poland
    Posts
    258
    Vote Rating
    73
    Misiu is just really nice Misiu is just really nice Misiu is just really nice Misiu is just really nice

      0  

    Default

    Base64 is currently not included in ExtJS SDK.
    But there are many ready-to-use extensions, just search forum