Project

General

Profile

Actions

Bug #1085

closed

Write code for "getResourceAsString_Comand.java" command

Added by Matthew Brooke over 21 years ago. Updated over 19 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
jalama-general
Target version:
Start date:
06/05/2003
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
1085

Description

Write code for "getResourceAsString_Comand.java" command which takes a url as an
argument (either a file:// url or an http: or ftp: etc - any others??) and gets the resource
that the url points to. Then returns this resource as a string to the caller.

If the resource turns out to be a binary file, this class would detect that fact and encode it
as a base64 string.

If this is the case, we probably need to return the MIME type as well as the encoded
data?

(Can we use any existing XPCOM functionality for this or should it all be a java
command?)

Actions

Also available in: Atom PDF