473,395 Members | 1,999 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,395 software developers and data experts.

Mime Header -- Read Parameter Value

Transferring several .wav files at one time from a vxml platform to a server
using multipart/form-data in VB.net.

The transfer and saving of the separate wav files works fine.

However, I need to access the name="****" value in the line below which in
this example would be "nameinfo".

Content-Disposition: form-data; name="nameinfo"; filename="vxml5f2ec39.wav"
Content-Type: audio/wav
Content-Transfer-Encoding: binary

Thanks. TomB

Nov 22 '05 #1
1 1448
Dim str_Value As String = "Content-Disposition: form-data;
name=""nameinfo""; filename=""vxml5f2ec39.wav""" & vbCrLf & _
"Content-Type: audio/wav" & vbCrLf & _
"Content-Transfer-Encoding: binary"

MsgBox(PullBetween(str_Value, "name=""", """;"))

Private Function PullBetween(ByVal Value As String, ByVal StartString As
String, ByVal EndString As String) As String
Dim int_startPos As Integer
Dim int_endPos As Integer

' Get to the beginning
int_startPos = Value.IndexOf(StartString)
If int_startPos = -1 Then Return Nothing
int_startPos = int_startPos + StartString.Length + 1
Value = Mid(Value, int_startPos)

' now get the ending
int_endPos = Value.IndexOf(EndString)
If int_endPos = -1 Then int_endPos = Value.Length
Value = Mid(Value, 1, int_endPos)
Return Value
End Function
Is this what your after?

"Tom_B" <To**@discussions.microsoft.com> wrote in message
news:F4**********************************@microsof t.com...
Transferring several .wav files at one time from a vxml platform to a
server
using multipart/form-data in VB.net.

The transfer and saving of the separate wav files works fine.

However, I need to access the name="****" value in the line below which in
this example would be "nameinfo".

Content-Disposition: form-data; name="nameinfo";
filename="vxml5f2ec39.wav"
Content-Type: audio/wav
Content-Transfer-Encoding: binary

Thanks. TomB

Nov 22 '05 #2

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

Similar topics

1
by: Tom_B | last post by:
Transferring several .wav files at one time from a vxml platform to a server using multipart/form-data in VB.net. The transfer and saving of the separate wav files works fine. However, I need...
0
by: clevariant | last post by:
Hello, I'm tasked with creating a WSDL file that is compatible with .NET's code gen' tool, wsdl.exe. I'm getting an error in the code output saying "Missing soap:body input binding", which...
0
by: Lokkju | last post by:
I am pretty much lost here - I am trying to create a managed c++ wrapper for this dll, so that I can use it from c#/vb.net, however, it does not conform to any standard style of coding I have seen....
3
by: Steven Allport | last post by:
I am working on processing eml email message using the email module (python 2.5), on files exported from an Outlook PST file, to extract the composite parts of the email. In most instances this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.