remove header and footer rows

I would like to remove some lines from begining of file (header) and some lines from end of file (footer).

The header/footer lines generated by web-browser when the user upload a file to my webserver.

Example:
-----------------------------7d62af20c052c
Content-Disposition: form-data; name=''test''; filename=''C:\test.dat''
Content-Type: application/octet-stream

ELF
-----------------------------7d62af20c052c

Anyone can help me?

thx

Which of those lines are the header? Which are the footer? Do the headers always contain the same number of lines? What about the footers? Does the content of the headers or footers change? If so, how? What does the data you want to keep look like?

sed '1d;$d' myFile