gtrxAC / discord-j2me

Discord client for Java ME (MIDP 1.0 & 2.0) devices
MIT License
226 stars 4 forks source link

Unable to view JPG image attachments on Symbian S60v3 #13

Closed matu6968 closed 2 months ago

matu6968 commented 3 months ago

I was messing around with the new update when i saw it supported image attachments, so decided to give a shot on my Nokia N82 but found out disappointed when it couldn't load a JPG image with it saying (no data) and it gives out one time every app restart a "Unsupported exception. Close app?" prompt.

20240617_205024.jpg

Other formats used: PNG, GIF (these work no problem)

gtrxAC commented 3 months ago

Seems like recently our Discord CDN (image server) proxy stopped accepting width and height parameters in the image download URLs, causing the images to be downloaded in full resolution. Your phone probably ran out of memory here.

However (I didn't realize this either until now) you can actually use the official Discord CDN (media.discordapp.net, but not cdn.discordapp.com) via non-secure HTTP connections (i.e. old phones) - so try setting your CDN URL to http://media.discordapp.net.

matu6968 commented 3 months ago

However (I didn't realize this either until now) you can actually use the official Discord CDN (media.discordapp.net, but not cdn.discordapp.com) via non-secure HTTP connections (i.e. old phones) - so try setting your CDN URL to http://media.discordapp.net.

Tried it out and sure enough it didn't cause a error again and actually displayed images normally albeit a bit not fully utilizing the phone's screen for it so that it can be zoomed for better viewing cause it's a bit unreadable as is, that means it is indeed a CDN issue image

matu6968 commented 2 months ago

issue seems to be fixed anyways so closing issue