Ghulam Rasool Raja

Greenhorn
+ Follow
since Mar 10, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ghulam Rasool Raja

I tried removing activation.jar from my classpath too. Did not work.
15 years ago
Well yes, it should have, but it is not - It is returning an object of type SharedByteArrayInputStream. Furthermore, I observed one more thing, whether I am sending just a plain message, or a message with attachments, I am getting the object of SharedByteArrayInputStream.
Any pointers will be appreciated, thanks for your time.
15 years ago
Thanks Ulf,

and how about the mails which contain both text and attachments ?

15 years ago
Hi,

I wrote a little program which downloads emails, using JavaMail API. I use the method getContent() of message object to get the content of the message,
I handled two conditions while reading the email message content..

1- I can either get an object of type String (if the email message is just a plain text) or
2- I can get an object of type Multipart (if the email has attachments)

code looks something like this


it was working fine, now we are in process of changing the email server, previously it was IBM Domino (running on windows), and we are planning to shift to SendMail (running on unix), But the problem that I am facing now, is that I am only getting an object of type javax.mail.util.SharedByteArrayInputStream from getContent() method of Message object. How do I convert this input stream to the expected format ? Tried using MimeBodyParty object, but was not all the helpful. Any pointers, suggestions will be greatly appreciated.
15 years ago
Hi,

I have a file which is infected with a virus, my java program opens a fileinputstream to that file and then subsequently loads it into an oracle db as a BLOB using setbinarystream method of preparedstatement, is there any virus threat to my system on which I am doing this activity ? I know that I am not executing the file and there is no threat - but still, i have to write some solid justification to my manager, any official links/material will be helpful.
Please note that this activity is being done in unix enviornment.

Thanks in advance
15 years ago
OK,

found the solution, it turned out that I was not properly doing the binary encoding of the message. So I got some help from here

http://www.artofmobile.com/2007/05/05/how-to-convert-si-message-to-gsm-sms-user-data/

Regards
15 years ago
Thanks Tim,

URL opens fine for me. I am still reasearching on this issue.
15 years ago
I want to send out a WAP Push SMS, i.e. SMS containing WAP data like a link which user can follow, I have been trying to send it using the OpenSMPP API here
http://www.artofmobile.com/2007/04/19/how-to-send-wap-push-data-through-smpp/#more-9
but I guess something is going wrong, some parameter value is wrong therefore either I am getting junk in my SMS when I am recieving it, or the SMSC is returning a negetive response upon submission.
I would appreciate if anyone could let me know the exact values of the parameters like
ESMClass,
Datacoding,
TON,
NPI
Note that I am able to send out a normal SMS perfectly fine, I also tried sending the service type as WAP, (which is blank in the above tutorial) but message does not push through.

Any help will be highly appreciated,
Thanks
15 years ago
I would like to know that what are the security concerns pertaining to DWR. I know that by using DWR we expose our java class methods which are called by the browser thru Javascript.
Is there a possibility of script injection and getting hold of some methods and do some hanky panky stuff ?
How can we be sure that our code is safe and that no one will be able to penetrate?
You are able to send and recieve primitives, arrays, even you can recieve a list of objects / beans from the server. You can configure it in your dwr.xml using converter tag to convert a java bean into a javascript object. You have to write some getter methods in your jsp to access the data in the object returned.