473,385 Members | 1,983 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Send binary to email

I have a problem converting binary to text

I am reading a page using xmlhttp

xmlhttp.open "GET", url, false ,"userName","password"
xmlhttp.send ""
tex3 = xmlhttp.responseBody

now I have the binary data of the html page I am reading

I can write this data to the asp page using

Response.BinaryWrite tex3

but I don't want to write it, I want to send it in a email but when I do I
get a load of ??????''??????'?????'
I need to convert it to ASCI
I have tried

tex3 = BinaryToText( tex3)

but did not work

any ideas?

I am using responseBody because responsetext has a problem of converting "'"
to "?"

thanks

Dec 25 '05 #1
2 2092
Ive noticed that you have posted this several times, while I do not have the
answer directly, i will try to point you in hopefully the right direction.

There is an article on MSDN about the responseBody property of XMLHTTP:

http://msdn.microsoft.com/library/de...3819f5b918.asp

in the bottom you will notice that it is a variant of several possible
encoding methods depending on the server, I have had a lot of luck in using
Chilkat Crypt for decoding, http://www.chilkatsoft.com/ they are very
responsive, they usually get back to me within an hour or so, so you might
give that a try. Unfortionatly it is not free. (US $289)

Another note, I have used the XMLHTTP responseText for quite some time now,
and have only run into it translating specific characters to ?, where they
are not the standard character (like the long dash, and wierd single and
double quotes that Microsoft seems to use a lot in Word documents and so on).
So if possible, try making sure that the ' that you are using are the ascii
character 39.

Sorry I couldnt be of more help!

"Slim" wrote:
I have a problem converting binary to text

I am reading a page using xmlhttp

xmlhttp.open "GET", url, false ,"userName","password"
xmlhttp.send ""
tex3 = xmlhttp.responseBody

now I have the binary data of the html page I am reading

I can write this data to the asp page using

Response.BinaryWrite tex3

but I don't want to write it, I want to send it in a email but when I do I
get a load of ??????''??????'?????'
I need to convert it to ASCI
I have tried

tex3 = BinaryToText( tex3)

but did not work

any ideas?

I am using responseBody because responsetext has a problem of converting "'"
to "?"

thanks


Dec 28 '05 #2

"Jerry Kizziar" <Je**********@discussions.microsoft.com> wrote in message
news:E9**********************************@microsof t.com...
Ive noticed that you have posted this several times, while I do not have
the
answer directly, i will try to point you in hopefully the right direction.
thanks mate

I completed the job a different way, but I still would like to know
I am taking a htm page created with MS Word and sending it to email. and yes
i was getting the "?" problem

using responseBody get rid of this so that you can write it to page without
the "?" problem, but you can not pass it to the email componet.

but i solved it buy reading the page directly with
CreateMHTMLBody(thePage)

instad of
..HTMLBody = body

There is an article on MSDN about the responseBody property of XMLHTTP:

http://msdn.microsoft.com/library/de...3819f5b918.asp

in the bottom you will notice that it is a variant of several possible
encoding methods depending on the server, I have had a lot of luck in
using
Chilkat Crypt for decoding, http://www.chilkatsoft.com/ they are very
responsive, they usually get back to me within an hour or so, so you might
give that a try. Unfortionatly it is not free. (US $289)

Another note, I have used the XMLHTTP responseText for quite some time
now,
and have only run into it translating specific characters to ?, where they
are not the standard character (like the long dash, and wierd single and
double quotes that Microsoft seems to use a lot in Word documents and so
on).
So if possible, try making sure that the ' that you are using are the
ascii
character 39.

Sorry I couldnt be of more help!

"Slim" wrote:
I have a problem converting binary to text

I am reading a page using xmlhttp

xmlhttp.open "GET", url, false ,"userName","password"
xmlhttp.send ""
tex3 = xmlhttp.responseBody

now I have the binary data of the html page I am reading

I can write this data to the asp page using

Response.BinaryWrite tex3

but I don't want to write it, I want to send it in a email but when I do
I
get a load of ??????''??????'?????'
I need to convert it to ASCI
I have tried

tex3 = BinaryToText( tex3)

but did not work

any ideas?

I am using responseBody because responsetext has a problem of converting
"'"
to "?"

thanks


Jan 5 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: vishal | last post by:
hi i am building aan application which will send mail to user when he registers on my site and i am checking whther the email id is working properly or not by sending his email and then cheking...
2
by: Lisa Pearlson | last post by:
Hi, My php application (on Apache/Linux) needs to do the following: The PHP script receives a request from a client (binary), asking for certain records of data. My PHP script loops through...
2
by: Fatih BOY | last post by:
Hi, I want to send a report from a windows application to a web page like 'report.asp' Currently i can send it via post method with a context like local=En&Username=fatih&UserId=45&Firm=none...
3
by: Ralph Krausse | last post by:
We are building a Linux product who's binary (executable) needs to have the ability to be updated. The embedded system will be behind a firewall. I was thinking this could be done over XML and...
5
by: nicolas ETIENNE | last post by:
Hello, I want to send through Socket a struct So, i'd like to do, as I did before in C++, something like send((void*)myStruct); where myStruct is a struct with basic types
16
by: anya | last post by:
Hey, I have a certain problem and till now I didnt find an answer on the web. I want to send an email message with picture in it. I dont want to put it as attachment but make it in the body of...
21
by: Dev | last post by:
Dear All, I have created a website. in the contact us page i want to send all information (Entered by visitor in text boxex) directly to my e-mail address. to do this i have no idea because i am...
1
by: Tbone | last post by:
Is there any way to send a Message without having the .NET framework add the "serialization" data to the body of the message? I am sending binary structures in the message and I need full control...
1
by: deepaks85 | last post by:
Dear All, I want to send some data through a form with Multiple attachment in an HTML Format. I have tried it but it is not working for me. I am able to send data without attachment but with the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.