Post Reply 
No artwork
22-11-2012, 10:53
Post: #15
RE: No artwork
(22-11-2012 10:46)simoncn Wrote:  
(22-11-2012 09:53)bubbleguuum Wrote:  An alternative to gzip+base64 is to use a md5sum of the file path.
That limits URL length at the (small) expense to have to store the md5sum => file path association in a file. Which is very easily done by using Java serialization on a HashMap for example. That's what I'm doing in BubbleUPnP Server. But in other scenarios I just use gzip+base64.

The disadvantage of this would be that I couldn't decode paths in trace logs created by users for problem solving and debugging. This isn't a problem if I use a self-contained reversible encoding.

It always has to be reversible, otherwise you would not be able to get the path to stream the file (independently of logging).

In the case of md5sum, the association (md5sum, filepath) must be stored and persisted in a hash table to be able to decode the md5sum.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
No artwork - wazza69 - 21-11-2012, 15:29
RE: No artwork - simoncn - 21-11-2012, 16:05
RE: No artwork - wazza69 - 21-11-2012, 16:25
RE: No artwork - simoncn - 21-11-2012, 17:41
RE: No artwork - wazza69 - 21-11-2012, 20:01
RE: No artwork - simoncn - 21-11-2012, 20:19
RE: No artwork - wazza69 - 21-11-2012, 21:34
RE: No artwork - mreip1 - 21-11-2012, 22:02
RE: No artwork - wazza69 - 21-11-2012, 23:26
RE: No artwork - simoncn - 21-11-2012, 23:44
RE: No artwork - bubbleguuum - 22-11-2012, 00:40
RE: No artwork - simoncn - 22-11-2012, 08:56
RE: No artwork - bubbleguuum - 22-11-2012, 09:53
RE: No artwork - simoncn - 22-11-2012, 10:46
RE: No artwork - bubbleguuum - 22-11-2012 10:53
RE: No artwork - simoncn - 22-11-2012, 12:09
RE: No artwork - simoncn - 21-02-2013, 17:19
RE: No artwork - bubbleguuum - 22-02-2013, 11:14
RE: No artwork - Crom - 26-11-2012, 17:41
RE: No artwork - bbrip - 26-11-2012, 18:39
RE: No artwork - simoncn - 26-11-2012, 18:54
RE: No artwork - Crom - 27-11-2012, 16:10
RE: No artwork - Crom - 27-11-2012, 16:47
RE: No artwork - wazza69 - 29-11-2012, 12:40
RE: No artwork - simoncn - 29-11-2012, 13:52
RE: No artwork - simoncn - 21-02-2013, 17:08

Forum Jump:


User(s) browsing this thread: 1 Guest(s)