What method would be used in java to name a file like this?
Instead of this: faxBodyPart.setFileName("fax-message.tiff");
Use this: faxBodyPart.setFileName("yyyy-MM-dd'T'HH:mm:ss.SSSZ.tiff");
(2001-07-04T12:08:56.235-0700)
I think this is unique enough and will likely be very sortable in a
file system and will not have duplicates.
I would assume one would either have to put in globally recognized
variables (do the ones above count?) or reference a class file for
this. Correct? At the same time I would prefer it to use the local
system time and not GMT, so I am hoping the example above would be
suitable.
On Tue, Aug 23, 2011 at 12:16 PM, Matt White <[email protected]> wrote:
>>>> On 8/22/2011 at 08:18 AM, in message <[email protected]>,
>>>> Gerald
> Drouillard <[email protected]> wrote:
>> On 8/22/2011 7:40 AM, Tony Graziano wrote:
>>>
>>> I suspect if we add ImageMagick to the required repo (roughly ~30MB of
>>> RPM's) we can take the temp file "tiff" and do a convert command;
>>>
>>> convert /temp/fax-message-tiff /temp/fax-message.pdf
>>>
>>> So my questions are:
>>>
>>> 1. Does anyone see an issue with adding ImageMagick to the requirement
>>> for sipxecs?
>> Not sure, but I think libtiff may be more efficient. I think it comes
>> in around 1MB. The command you are looking for is:
>> tiff2pdf -o /temp/fax-message.pdf /temp/fax-message-tiff
>
> Imagemagic source is around 12MB but binaries are pretty small.
>
> 300KB on my systems and the libs come in at 500KB.
>
> So if you just made it an external dependency, its a small change. No need
> to bring the source into sipx repos.
>
>
> -m
>
>
>
>
> _______________________________________________
> sipx-dev mailing list
> [email protected]
> List Archive: http://list.sipfoundry.org/archive/sipx-dev/
>
--
======================
Tony Graziano, Manager
Telephone: 434.984.8430
sip: [email protected]
Fax: 434.465.6833
Email: [email protected]
LAN/Telephony/Security and Control Systems Helpdesk:
Telephone: 434.984.8426
sip: [email protected]
Helpdesk Contract Customers:
http://support.myitdepartment.net
Blog:
http://blog.myitdepartment.net
Linked-In Profile: http://www.linkedin.com/pub/tony-graziano/14/4a6/7a4
Ask about our Internet faxservices!
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev/