Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The problem with image attachments
#1
The problem with image attachments
I attached an image to the post. Browser (neither Chrome nor IE nor Firefox) cannot interpret and display the attachment. You can see it here: http://forums.irix.cc/attachment.php?aid=425 .

I figured out what is wrong. Files (original) I add and file I can see are not the same. The content of the file (after upload) is shifted by 142 bytes (sequence od 0x0D and 0x0A - new line characters) and the last 142 bytes of the files are truncated. Both files have the same size.

Begining of the oroginal file (jpeg image):
FF D8 FF E0 00 10 4A 46 49 46 00 01 01 01 00 48 00 48 00 00 FF FE 00 32 50 72 6F 63 65 73 73 65 64 20 42 79 20 65 42 61 79 20 77 69 74 68 20 49 6D 61 67 65 4D 61 67 69 63 6B 2C 20 7A 31 2E 31 2E 30 2E 20 7C 7C 42 32 FF DB 00 43 00 06 04 05 06 05 04 06 06 05 06 07 07 06 08 0A 10 0A 0A 09 09 0A 14 0E 0F 0C 10 17 14 18 18 17 14 16 16 1A 1D 25 1F 1A 1B 23 1C 16 16 20 2C 20 23 26 27 29 2A 29 19 1F 2D 30 2D 28 30 25 28 29 28 FF DB 00 43 01 07 07 07 0A 08 0A 13 0A 0A 13 28 1A 16 1A 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 FF C0 00 11 08 03 20 02 58 03 01 22 00 02 11 01 03 11 01 FF C4 00 1C 00 00 02 03 01 01 01 01 00 00 00 00 00 00 00 00 00 05 06 03 04 07 02

Begining of the file downloaded from forum:
0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A FF D8 FF E0 00 10 4A 46 49 46 00 01 01 01 00 48 00 48 00 00 FF FE 00 32 50 72 6F 63 65 73 73 65 64 20 42 79 20 65 42 61 79 20 77 69 74 68 20 49 6D 61 67 65 4D 61 67 69 63 6B 2C 20 7A 31 2E 31 2E 30 2E 20 7C 7C 42 32 FF DB 00 43 00 06 04 05 06 05 04 06 06 05 06 07 07 06 08 0A 10 0A 0A 09 09 0A 14 0E 0F 0C 10 17 14 18 18 17 14 16 16 1A 1D 25

I'm curious if You can replicate this. Just and image as an attachment to the post and then download it and compare. I hope You find this useful.
OnyxR
mosiniak Offline
Onyx

Posts: 33
Threads: 8
Joined: Aug 2018
Discord: mosiniak#8552
Find Reply
08-30-2018, 12:54 PM
#2
RE: The problem with image attachments
(08-30-2018, 12:54 PM)mosiniak Wrote: I attached an image to the post. Browser (neither Chrome nor IE nor Firefox) cannot interpret and display the attachment. You can see it here: http://forums.irix.cc/attachment.php?aid=425 .

I figured out what is wrong. Files (original) I add and file I can see are not the same. The content of the file (after upload) is shifted by 142 bytes (sequence od 0x0D and 0x0A - new line characters) and the last 142 bytes of the files are truncated. Both files have the same size.

Begining of the oroginal file (jpeg image):
FF D8 FF E0 00 10 4A 46 49 46 00 01 01 01 00 48 00 48 00 00 FF FE 00 32 50 72 6F 63 65 73 73 65 64 20 42 79 20 65 42 61 79 20 77 69 74 68 20 49 6D 61 67 65 4D 61 67 69 63 6B 2C 20 7A 31 2E 31 2E 30 2E 20 7C 7C 42 32 FF DB 00 43 00 06 04 05 06 05 04 06 06 05 06 07 07 06 08 0A 10 0A 0A 09 09 0A 14 0E 0F 0C 10 17 14 18 18 17 14 16 16 1A 1D 25 1F 1A 1B 23 1C 16 16 20 2C 20 23 26 27 29 2A 29 19 1F 2D 30 2D 28 30 25 28 29 28 FF DB 00 43 01 07 07 07 0A 08 0A 13 0A 0A 13 28 1A 16 1A 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 28 FF C0 00 11 08 03 20 02 58 03 01 22 00 02 11 01 03 11 01 FF C4 00 1C 00 00 02 03 01 01 01 01 00 00 00 00 00 00 00 00 00 05 06 03 04 07 02

Begining of the file downloaded from forum:
0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A 0D 0A FF D8 FF E0 00 10 4A 46 49 46 00 01 01 01 00 48 00 48 00 00 FF FE 00 32 50 72 6F 63 65 73 73 65 64 20 42 79 20 65 42 61 79 20 77 69 74 68 20 49 6D 61 67 65 4D 61 67 69 63 6B 2C 20 7A 31 2E 31 2E 30 2E 20 7C 7C 42 32 FF DB 00 43 00 06 04 05 06 05 04 06 06 05 06 07 07 06 08 0A 10 0A 0A 09 09 0A 14 0E 0F 0C 10 17 14 18 18 17 14 16 16 1A 1D 25

I'm curious if You can replicate this. Just and image as an attachment to the post and then download it and compare. I hope You find this useful.
I also get this using Edge.
Hey Ho Pip And Dandy!!!!!

Onyx2 :O2K_d-1: Origin 200 :tezro: Octane2 O2 Indigo Indy :320:
uunix Offline
Octane

Posts: 198
Threads: 26
Joined: Dec 2017
Find Reply
08-30-2018, 01:29 PM
#3
RE: The problem with image attachments
I make use of imgur to post images and it seems to work fine.

This site however doesn't automatically scale images which are hosted externally, so it's necessary to post images that have the following dimensions or less: 1024x768.
[Image: rZbyrYx.png]
(This post was last modified: 08-30-2018, 01:58 PM by Irinikus.)
Irinikus Offline
Tezro

Posts: 498
Threads: 65
Joined: Dec 2017
Discord: Irinikus
Find Reply
08-30-2018, 01:47 PM
#4
RE: The problem with image attachments
(08-30-2018, 01:47 PM)Irinikus Wrote: I make use of imgur to post images and it seems to work fine.

This site however doesn't automatically scale images which are hosted externally, so it's necessary to post images that have the following dimensions or less: 1024x768.

This problem is with all attachments (zip files also). Please look at post http://forums.irix.cc/thread-353.html This problem is not connected with browser but with the way attachments are processed by the server. Please check how attachments are saved on server (if they are OK or corrupted).

I worry that without fixing it any attachment will be corrupted (I hope that there is problem with reading attachments from server only and files are OK on the server).

P.S. My image was 800x600, but now we know that size of an image is not the reason.
OnyxR
(This post was last modified: 08-30-2018, 02:21 PM by mosiniak.)
mosiniak Offline
Onyx

Posts: 33
Threads: 8
Joined: Aug 2018
Discord: mosiniak#8552
Find Reply
08-30-2018, 02:15 PM
#5
RE: The problem with image attachments
(08-30-2018, 02:15 PM)mosiniak Wrote:
(08-30-2018, 01:47 PM)Irinikus Wrote: I make use of imgur to post images and it seems to work fine.

This site however doesn't automatically scale images which are hosted externally, so it's necessary to post images that have the following dimensions or less: 1024x768.

This problem is with all attachments (zip files also). Please look at post http://forums.irix.cc/thread-353.html This problem is not connected with browser but with the way attachments are processed by the server. Please check how attachments are saved on server (if they are OK or corrupted).

I worry that without fixing it any attachment will be corrupted (I hope that there is problem with reading attachments from server only and files are OK on the server).

P.S. My image was 800x600, but now we know that size of an image is not the reason.

imgur is a site used to host images, so that they can be posted on forums such as this one by copying the link to the file hosted there.

I know for a fact that Raion-Fox doesn't want .zip files posted on this site.

Im sure that they will fix the problem concerning the uploading of attachments to their server in due course.

I would however suggest that you make use of a site such as imgur to host your images.
[Image: rZbyrYx.png]
Irinikus Offline
Tezro

Posts: 498
Threads: 65
Joined: Dec 2017
Discord: Irinikus
Find Reply
08-30-2018, 03:48 PM
#6
RE: The problem with image attachments
I'll have to keep working on this, thanks for posting the bug.

I encourage everyone to use an external file/image host for the time being.
I'm the manager
Besides irix.cc, I run these sites:
projectkitsune.com
kazuo.io

Tezro
Octane2
Indigo2 IMPACT
Indigo2
3x O2
3x Indy

Raion Offline
Administrator
*******

Posts: 270
Threads: 46
Joined: Nov 2017
Discord: Umbra#0893
Website Find Reply
08-30-2018, 04:19 PM


Forum Jump:


Users browsing this thread: 1 Guest(s)