- Open below directory in Finder with Cmnd + Shift + G
 
/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/
| import requests | |
| #http://docs.python-requests.org/en/latest/user/quickstart/#post-a-multipart-encoded-file | |
| url = "http://localhost:5000/" | |
| fin = open('simple_table.pdf', 'rb') | |
| files = {'file': fin} | |
| try: | |
| r = requests.post(url, files=files) | |
| print r.text | 
| package com.company.project.components; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.context.MessageSource; | |
| import org.springframework.context.support.MessageSourceAccessor; | |
| import org.springframework.stereotype.Component; | |
| import javax.annotation.PostConstruct; | |
| import java.util.Locale; |