This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 22 - Pages: 2 [ 1 2 | Next ] - Last Post: 24 Dec 23, 09:29 Last Post By: fodohgraf
AndreWolff

Posts: 1,159
Registered: 14-Dec-2007
Upload error: Image data does not represent an image
Posted: 2 Oct 17, 09:46
 
  Click to reply to this thread Reply
When I upload this album with web locations, the system console shows this error message:
Make album: 0.54s
Album upload: 0.675s
Total upload: 1.299s
java.io.IOException: Error while adding album. Server reported: java.io.IOException: Image data does not represent an image.
	at se.datadosen.jalbum.Notifier.albumAdded(Notifier.java:127)
	at se.datadosen.jalbum.Notifier$1.run(Notifier.java:153)


The uploaded album seems OK, so why do I get that silent error message?
davidekholm

Posts: 3,457
Registered: 18-Oct-2002
Re: Upload error: Image data does not represent an image
Posted: 2 Oct 17, 12:41   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
Thanks for reporting. Open that album project in jAlbum, then open jAlbum's system console and issue the following:
rootFolder.getThumbnailPath()
What does it return?
AndreWolff

Posts: 1,159
Registered: 14-Dec-2007
Re: Upload error: Image data does not represent an image
Posted: 2 Oct 17, 13:54   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Attachment Console.PNG (9.5 KB)
Attachment Console2.PNG (9.4 KB)
Attachment ThumbsFolder.PNG (305.2 KB)
davidekholm wrote:
Thanks for reporting. Open that album project in jAlbum, then open jAlbum's system console and issue the following:
rootFolder.getThumbnailPath()
What does it return?

==> null

if I click the Evalueer button, see screenshot Console.PNG

Edit:

if I enter it in the upper panel I get as response

==> thumbs/www.andrewolff.nl-100.jpg

The album is now at location https://www.andrewolff.nl/FotoSerie/WaddeneilandenTest/


see Console2.PNG

Edited by: AndreWolff on 02-Oct-2017 13:57

The contents of the thumbs folder is displayed in screenshot ThumbsFolder.PNG

Edited by: AndreWolff on 02-Oct-2017 14:07

davidekholm

Posts: 3,457
Registered: 18-Oct-2002
Re: Upload error: Image data does not represent an image
Posted: 3 Oct 17, 10:29   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
Please make a minimal album project that behaves like that, zip it and attach it here. I can't reproduce it.
AndreWolff

Posts: 1,159
Registered: 14-Dec-2007
Re: Upload error: Image data does not represent an image
Posted: 3 Oct 17, 11:03   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
Please make a minimal album project that behaves like that, zip it and attach it here. I can't reproduce it.
See enclosed zip file.
davidekholm

Posts: 3,457
Registered: 18-Oct-2002
Re: Upload error: Image data does not represent an image
Posted: 3 Oct 17, 11:06   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
Thanks André. I made and uploaded that gallery, but "unfortunately" it works :-/. I'll keep an eye on this. Luckily it's not an error that hinders usage.
AndreWolff

Posts: 1,159
Registered: 14-Dec-2007
Re: Upload error: Image data does not represent an image
Posted: 3 Oct 17, 12:41   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Well David, I did discover that it depends on the server:

I see this error only if I upload the album to my Strato server, to URL
https://www.andrewolff.nl/FotoSerie/WaddeneilandenTest_PS/

If I upload it to the jAlbum server, to URL
http://andrewolff.jalbum.net/WaddeneilandenTest_PS/
I do not get the error message.

I see the same behaviour if I use the Minimal skin instead of the PhotoSwipe skin.

Edit:

I wonder could it be caused by the https protocol used in the Strato URL?

If I upload the album to jAlbum there is automatically a http page opened, how can I change this so that a https page is opened?

Edited by: AndreWolff on 03-Oct-2017 12:48
davidekholm

Posts: 3,457
Registered: 18-Oct-2002
Re: Upload error: Image data does not represent an image
Posted: 3 Oct 17, 13:21   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
Could it be that your server doesn't allow random access to images?
AndreWolff

Posts: 1,159
Registered: 14-Dec-2007
Re: Upload error: Image data does not represent an image
Posted: 3 Oct 17, 13:23   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
Could it be that your server doesn't allow random access to images?
I don't know what you mean and I don't know how I can check that!
AnCa

Posts: 437
Registered: 25-Mar-2005
Re: Upload error: Image data does not represent an image
Posted: 3 Oct 17, 13:56   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
java.io.IOException: Error while adding album. Server reported: java.io.IOException: Image data does not represent an image.
It seems to be our server that generates that message when it tries to fetch the album thumbnail when adding the album to the profile page. I don't think it has anything to do with web locations. Have you tried to add any album uploaded to your server? (It of course works when I try to manually add your album.)
AndreWolff

Posts: 1,159
Registered: 14-Dec-2007
Re: Upload error: Image data does not represent an image
Posted: 3 Oct 17, 14:11   in response to: AnCa in response to: AnCa
 
  Click to reply to this thread Reply
AnCa wrote:
AndreWolff wrote:
java.io.IOException: Error while adding album. Server reported: java.io.IOException: Image data does not represent an image.
It seems to be our server that generates that message when it tries to fetch the album thumbnail when adding the album to the profile page. I don't think it has anything to do with web locations. Have you tried to add any album uploaded to your server? (It of course works when I try to manually add your album.)

You are correct, I get that error message also with albums without web locations.

How can I prevent thatan album is added to the profile page?
JeffTucker

Posts: 8,202
Registered: 31-Jan-2006
Re: Upload error: Image data does not represent an image
Posted: 3 Oct 17, 14:39   in response to: AnCa in response to: AnCa
 
  Click to reply to this thread Reply
AnCa wrote:
It seems to be our server that generates that message when it tries to fetch the album thumbnail when adding the album to the profile page.

Sounds like it's related to this - slightly different situation, but....: https://jalbum.net/forum/thread.jspa?threadID=52621
AnCa

Posts: 437
Registered: 25-Mar-2005
Re: Upload error: Image data does not represent an image
Posted: 3 Oct 17, 14:50   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
How can I prevent thatan album is added to the profile page?
You'll have to sign out from the jAlbum client...

But if I just figure out a way of reproducing this error I should be able to fix it.
AnCa

Posts: 437
Registered: 25-Mar-2005
Re: Upload error: Image data does not represent an image
Posted: 3 Oct 17, 15:20   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
You are correct, I get that error message also with albums without web locations.

I have now added some logging, so if you try to add that album again that fails I can see what's happening.
AndreWolff

Posts: 1,159
Registered: 14-Dec-2007
Re: Upload error: Image data does not represent an image
Posted: 3 Oct 17, 15:33   in response to: AnCa in response to: AnCa
 
  Click to reply to this thread Reply
AnCa wrote:
AndreWolff wrote:
You are correct, I get that error message also with albums without web locations.

I have now added some logging, so if you try to add that album again that fails I can see what's happening.


I see still the same in the system console:

Album upload: 0.751s
Total upload: 1.415s
java.io.IOException: Error while adding album. Server reported: java.io.IOException: Image data does not represent an image.
at se.datadosen.jalbum.Notifier.albumAdded(Notifier.java:127)
at se.datadosen.jalbum.Notifier$1.run(Notifier.java:153)

No logging is visible for me.

I use the jAlbum uploader already 10 years to upload albums to my Stratoserver, but I can't remember that I ever had seen this error message, so I guess there is recently someting changed which causes this problem.

Edited by: AndreWolff on 03-Oct-2017 15:35
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums