Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Cannot download assetbundle in ios. (Invalid Unity Web File)

Discussion in 'iOS and tvOS' started by Zeratul, May 22, 2013.

  1. Zeratul

    Zeratul

    Joined:
    May 22, 2013
    Posts:
    5
    Hello, I'm using assetbundle in both android and ios developement.

    My program works well in android but has a problem in ios.

    I built assetbundle normally, and uploaded them to a IIS web server using ftp, mput command.
    But while I try to download them with WWW(url) method a error occurs.(www.error)
    It says "Invalid Unity Web File(Decompression Failure)".
    One thing is that when I try to download it from local storage(with WWW("file://...")) assetbundle is normally downloaded and no error occurs.
    There is no other problem in web server, because other types of files(not assetbundle, some xml or binary files) are downloaded normally with WWW() method.

    Do I missing something? Please, any help is appreciated.
     
  2. Zeratul

    Zeratul

    Joined:
    May 22, 2013
    Posts:
    5
    I am self-answering. When I was using ftp the transfer mode was ascii, so file size has changed, and assetbundle file has corrupt and could not be read from unity. I changed transfer mode to binary and it has been solved.
     
  3. morybest

    morybest

    Joined:
    Nov 7, 2013
    Posts:
    5
    to Zeratul from "Aure"
    greate dude . you solved my big problem . tanx a lot.
    "captain jimy raynor"
     
  4. pcorazao

    pcorazao

    Joined:
    Mar 1, 2015
    Posts:
    5
  5. sbfhhh

    sbfhhh

    Joined:
    May 9, 2014
    Posts:
    3
  6. Sekai92

    Sekai92

    Joined:
    Apr 22, 2015
    Posts:
    32
    how i can change transfer mode to binary?
     
  7. Transiberiano

    Transiberiano

    Joined:
    Nov 18, 2012
    Posts:
    1

    Image from Softpedia