473,397 Members | 2,099 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,397 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 1449
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: 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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.