Giter Site home page Giter Site logo

IMAGE_NOT_DECODED about pastec HOT 6 CLOSED

magwyz avatar magwyz commented on July 17, 2024
IMAGE_NOT_DECODED

from pastec.

Comments (6)

magwyz avatar magwyz commented on July 17, 2024

Please provide the full curl command you are using.

from pastec.

Victorgf87 avatar Victorgf87 commented on July 17, 2024

Sure.

curl -X PUT --data-binary ./images/h3.jpg http://37.139.11.71:4212/index/images/1

And the response: {"image_id":1,"type":"IMAGE_NOT_DECODED"}

from pastec.

magwyz avatar magwyz commented on July 17, 2024

Replace "./images/h3.jpg" by "@images/h3.jpg"
The @ is important. It's the curl syntax.

from pastec.

Victorgf87 avatar Victorgf87 commented on July 17, 2024

Thank you so much, I didn't see that ^^'

Now I can upload images, but if the image is bad, it says:
pastec: jax_cm.c:845: jas_cmshapmat_apply:Assertion 0 failed. Aborted

And the process dies
I hope you find that useful

Thanks again :)

from pastec.

magwyz avatar magwyz commented on July 17, 2024

Could you attach a sample image to this issue?
Thanks

from pastec.

Victorgf87 avatar Victorgf87 commented on July 17, 2024

If you are asking for the image I was using it was this file:
h2

As you can see it's just a bad image, it was a jpg file processed with base64

One last question, I'm trying to create an Android application using pastec and Retrofit, but I can't make it work. Do you know what is the exact equivalent to "--data-binary" in Retrofit? I have tried a several things like multipart with Requestbody and yet it doesn't work

Again, thanks for everything

from pastec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.